//-----------------------------------------------------------------------
// <copyright file="a_DocService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DocService
    {
        #region a_Doc

        public static void Createa_Doc(a_Doc a_Doc)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                a_DocDAO.Createa_Doc(a_Doc);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Doc(a_Doc a_Doc)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                a_DocDAO.Updatea_Doc(a_Doc);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Doc(int docID)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                a_DocDAO.Deletea_Doc(docID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Doc Geta_Doc(int docID)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                return a_DocDAO.Geta_Doc(docID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DocCollection Geta_DocList(a_DocColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                return a_DocDAO.Geta_DocList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DocCollection Geta_DocList(a_DocColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DocDAO a_DocDAO = new a_DocDAO();
                return a_DocDAO.Geta_DocList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}